<%@ page language="java" import="java.util.*,com.cqnu.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":"
			+ request.getServerPort() + path;
	String uid=CommonUtil.getCookie(request, "uid");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>数学学院论文管理系统</title>

<%@ include file="/taglibs.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="${ctx}/js/skinUtil.js"></script>
<script type="text/javascript" src="${ctx}/js/base/home.js"></script>
<script type="text/javascript">
	jQuery.ajaxSetup({
		cache : false
	});
	var styleName = "blue";
	if ($.cookie('imoiaImsStyleName')) {
		styleName = $.cookie('imoiaImsStyleName');
	}
	switchStylestyle(styleName);
	
	$(function() {
		if(typeof homeBaseUrl === 'undefined'){
			homeBaseUrl = "${ctx}";
		}
		
		maxTabNum = 5;
		bindTabEvent();
		bindTabMenuEvent();
		//初始化树菜单
		var menu=${menuList}; 
		var menuLeft=${menuLeft};
		initTreeMenu(menu,menuLeft,"${ctx}");
		$('#confirmPassword').validatebox({
			validType : 'eqPwd["#newPassword"]'
		});
	
		var tt = $('#main-center');
		tt.tabs('add', {
			title : '首页',
			closable : false,
			closed : false,
			id : 'homeTab'
		});
	});
</script>
</head>

<body class="easyui-layout" id="mainBody">
	<div region="north" id="north-layout" title="" split="false">
		<div class="imoia_header" id="bigMenuBar">
			<div class="imoia_logo">
				<a href="#"><img src="<%=path%>/images/home/home_logo.png" /></a>
			</div>
			<div class="imoia_nav">
				<ul id="topMenu">
				</ul>
			</div>
		</div>
	</div>
	<div region="west" id="west-layout" title="" split="true" style="width:225px;">
		<div class="easyui-layout" fit="true">
			<div id="home-left-layout" region="center" border="false">
				<div id="tree-menu" class="easyui-accordion" fit="true" border="false"></div>
				<div id="treetips" class="imoia_menunote" style="display:none;"></div>
			</div>
			<div region="south" style="height:26px;" border="false"></div>
		</div>
	</div>
	<div region="center">
		<div id="main-center" class="easyui-tabs" fit="true" border="false" data-options="tools:'#tab-tools'">
		</div>
	</div>
	<div region="south" id="south-layout" style="height:26px;" split="false" border="false">
		<div class="imoia_footer">
			<div class="imoia_user">
				<div class="imoia_direction">
					<a href="javascript:void(0);" class="ditop" onclick="setTopMenuType('small');">点击隐藏头部</a>
					<a href="javascript:void(0);" class="diright" onclick="showLayoutWS();">点击显示左边</a>
					<a href="javascript:void(0);" class="didown" onclick="setTopMenuType('big');">点击显示头部</a>
					<a href="javascript:void(0);" class="dileft" onclick="hideToolBarWest();">点击隐藏左边</a> 
					<a href="javascript:void(0);" class="dimid" id="fullScreen" onclick="fullScreen();">点击切换全屏</a>
				</div>
				<div class="imoia_userbtn">
					<a href="javascript:void(0);" id="open_change_password" title="修改密码" class="imoia_modifypass">修改密码</a>
					<a href="${ctx}/login.do" title="安全退出" class="imoia_safequit">安全退出</a>
				</div>
			</div>
			<div class="imoia_didesc"></div>
			<div class="imoia_userinfo">
				<c:if test="${sessionInfo != null}">
					<strong>用户：</strong>
					<span>${sessionInfo.name}</span>
					<strong>当前时间：</strong>
					<span id="clock"></span>
				</c:if>
			</div>
			<div class="imoia_skins"><a rel="blue" class="styleswitch skins_blue" title="蓝">蓝</a><a rel="red" class="styleswitch skins_red" title="红">红</a><a rel="green" class="styleswitch skins_green" title="绿">绿</a></div>
	</div>
	</div>
	<%@include file="homeInclude.jsp"%>
</body>
</html>
